package com.ys.entity.base;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TP_AmazonRegion", catalog="Id")
public class TpAmazonRegion extends BaseEntity<TpAmazonRegion> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="PlatformCode", nameJava="platformCode", typeDataBase="varchar")
	private String platformCode;
	@YsField(nameDataBase="Code", nameJava="code", typeDataBase="varchar")
	private String code;
	@YsField(nameDataBase="Name", nameJava="name", typeDataBase="varchar")
	private String name;
	@YsField(nameDataBase="AmazonServiceUrl", nameJava="amazonServiceUrl", typeDataBase="varchar")
	private String amazonServiceUrl;
	@YsField(nameDataBase="AwsRegion", nameJava="awsRegion", typeDataBase="varchar")
	private String awsRegion;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TpAmazonRegion setId(Long id) {
		this.id = id;
		return this;
	}
	public String getPlatformCode() {
		return platformCode;
	}
	public TpAmazonRegion setPlatformCode(String platformCode) {
		this.platformCode = platformCode;
		return this;
	}
	public String getCode() {
		return code;
	}
	public TpAmazonRegion setCode(String code) {
		this.code = code;
		return this;
	}
	public String getName() {
		return name;
	}
	public TpAmazonRegion setName(String name) {
		this.name = name;
		return this;
	}
	public String getAmazonServiceUrl() {
		return amazonServiceUrl;
	}
	public TpAmazonRegion setAmazonServiceUrl(String amazonServiceUrl) {
		this.amazonServiceUrl = amazonServiceUrl;
		return this;
	}
	public String getAwsRegion() {
		return awsRegion;
	}
	public TpAmazonRegion setAwsRegion(String awsRegion) {
		this.awsRegion = awsRegion;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TpAmazonRegion setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TpAmazonRegion setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TpAmazonRegion setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TpAmazonRegion tpAmazonRegion(
		String platformCode,
		String code,
		String name,
		String amazonServiceUrl,
		String awsRegion,
		Integer status
			) {
		TpAmazonRegion entity = new TpAmazonRegion();
		entity.setPlatformCode(platformCode);
		entity.setCode(code);
		entity.setName(name);
		entity.setAmazonServiceUrl(amazonServiceUrl);
		entity.setAwsRegion(awsRegion);
		entity.setStatus(status);
		return entity;
	}
}